package com.zlq.cn.mapper.un;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zlq.cn.dto.DataCountDTO;
import com.zlq.cn.dto.DateCountDTO;
import com.zlq.cn.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhoucl
 * @since 2020-06-08
 */
public interface UserMapper extends BaseMapper<User> {

    void test();

    User findUserByToken(@Param("token") String token);

    List<User> userList(Page<User> page);

    User findUserByPhone(@Param("phone") String phone);

    void updateUserToken(User user);

    void updateUserInfo(User user);

    void updateVipTime(User loginUser);

    List<DataCountDTO> totalCount(@Param("dateCountDTO") DateCountDTO dateCountDTO);
}
